package androidserver.engine;

import java.rmi.Naming;

import androidserver.matlabprocessor.MatlabRemote;
import androidserver.matlabprocessor.remote.IMatlabRemote;

public class Main {
	private static String HOST_NAME = "//localhost/Compute"; //TODO from config
	
	public static void main(String[] args) {
		
		try {
			IMatlabRemote engine = new MatlabEngine();
			Naming.rebind(HOST_NAME, engine);
			System.out.println("MatlabEngine bound");
			

		} catch (Exception e) {
			System.err.println("MatlabEngine exception: " + e.getMessage());
			e.printStackTrace();
		}
	}
}
